package com.eliza.notice

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.notice.activity.AlertDialogActivity
import com.eliza.notice.activity.ToastActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<Button>(R.id.main_to_AlertDialog).setOnClickListener {
            startActivity(Intent(this, AlertDialogActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_Toast).setOnClickListener {
            startActivity(Intent(this, ToastActivity::class.java))
        }

    }
}